package net.ifilm.common;

/**
 *
 *
 * User: <a href="wangjunneil@gmail.com">wangjun</a>
 * Date: 2012-08-05 23:40
 */
public final class Constants {

    private Constants() { }

    // -------------------------------------- 系统开关变量，由后台控制面板设置--------------------------------------------

    /**
     * 情色片开关
     */
    public static boolean switchSex = false;

    /**
     * 性能开关，开启则拦截方法记录处理时间
     */
    public static boolean performance = false;

    /**
     * 日志开关
     *
     * 1、DEBUG 2、INFO 3、WARN 4、ERROR
     */
    public static int logLevel = 2;

    /**
     * 系统参数表缓存Key
     */
    public static final String CACHE_KEY_SYSPARAM = "sysparamList";

    /**
     * 首页幻灯片电影缓存Key
     */
    public static final String CACHE_KEY_SLIDE = "slideFilmList";

    /**
     * 电影类型缓存Key
     */
    public static final String CACHE_KEY_FILMTYPE = "filmTypeList";

    /**
     * 发行区域缓存Key
     */
    public static final String CACHE_KEY_REGION = "regionList";



    /**
     * 默认轮播电影显示条目数
     */
    public static final int SLIDEFILM_NUM = 5;
	
	/*
	 * 电影标题图片的缺省高度和宽度 
	 */
	public static final int DEFAULT_FILM_IMAGE_WIDTH = 112;
	public static final int DEFAULT_FILM_IMAGE_HEIGHT = 160;

    /*
     *
     */
    public static final int ENABLE = 0;
    public static final int DISABLE = 1;

    /**
     * 电影标签分隔符
     */
    public static final String TAGS_SPLIT = ";";

    public static final String CURRENT_USER = "sessionUser";

} ///:~
